{	Problem: http://codeforces.ru/problemset/problem/58/A
	Verdict: Accepted

}
const t='hello';
var i,cur:longint; s:string;
begin
readln(s);
cur:=1;
i:=1;
while (i<=length(S)) and (cur<6) do begin
  if s[i]=t[cur] then inc(cur);
  inc(i);
end;
if cur=6 then writeln('YES') else writeln('NO');
end.